package com.yanxibao.service;

import com.yanxibao.bean.Blog;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yanxibao.common.Result;
import com.yanxibao.dto.BlogDTO;
import com.yanxibao.dto.PageQueryDTO;

/**
* @author kongke
* @description 针对表【yxb_blog(推文表)】的数据库操作Service
* @createDate 2023-11-19 20:12:25
*/
public interface BlogService extends IService<Blog> {

    Result<Blog> addBlog(Blog blog);

    Result<Boolean> deleteBlog(Integer id);

    Result<Blog> updateBlog(Blog blog);

    Result<Blog> queryById(Integer blogId);

    Result<PageQueryDTO<BlogDTO>> queryBlog(String userId);

    Result<Integer> likeBlog(Integer blogId);

    Result<Boolean> isLike(Integer blogId);
}
